import * as VueRouter from 'vue-router'
const routes = [
    {
        path: '/item',
        name: 'ItemView',
        component: () => import('../views/ItemView.vue')
    }
]
// 创建路由实例
const router = VueRouter.createRouter({
    history: VueRouter.createWebHashHistory(), // hash模式
    routes
})
export default router
